package com.xiaocai.myblog.common;

import java.io.Serializable;

/**
 * @author chenhefu
 * @date 2019-09-30 17:35
 */
public class ResponseData<T> implements Serializable {

    private static final long serialVersionUID = -3482839797434946211L;
    private int code;
    private String msg;
    private T data;

    ResponseData(){}
    ResponseData(int code, String msg, T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
